﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EntityModel;

namespace PL___Windows_Inteface
{
    public partial class ManagementMenu : Form
    {
        public ManagementMenu(Employee emp)
        {
            InitializeComponent();
            this.Text += emp.name; 
        }

        private void add_private_bt_Click(object sender, EventArgs e)
        {
            (new ManagePrivate("ADD","")).ShowDialog();
        }

        private void search_private_bt_Click(object sender, EventArgs e)
        {
            (new SearchForm()).ShowDialog();
        }

        private void view_private_bt_Click(object sender, EventArgs e)
        {
            (new ViewAllForm("Private")).ShowDialog();
        }

        private void add_car_bt_Click(object sender, EventArgs e)
        {
            (new ManageCar("ADD", "")).ShowDialog();
        }

        private void button8_Click(object sender, EventArgs e)
        {
            (new SearchForm()).ShowDialog();
        }

        private void button7_Click(object sender, EventArgs e)
        {
            (new ViewAllForm("Cars")).ShowDialog();
        }

        private void button6_Click(object sender, EventArgs e)
        {

            (new ManageTrucks("ADD", "")).ShowDialog();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            (new SearchForm()).ShowDialog();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            (new SearchForm()).ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            (new ViewAllForm("Business")).ShowDialog();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            (new ViewAllForm("Trucks")).ShowDialog();
        }

        private void button10_Click(object sender, EventArgs e)
        {
            (new OperationsForm("Sell")).ShowDialog();
        }

        private void button11_Click(object sender, EventArgs e)
        {
            (new OperationsForm("Leasing")).ShowDialog();
        }

        private void button9_Click(object sender, EventArgs e)
        {
            (new SharedFleet()).ShowDialog();
        }

       
    }
}
